<?php
	//echo date('y-m-d h:i:s', time());
	if (!isset($_COOKIE["user"])) {
		$login = "请登录!";
		$url = "http://localhost/tour/index.php";
		echo "<script>alert('$login');window.location.href='$url'</script>"; 
		//$url = "http://localhost/tour/index.php";
		//Header("Location: $url");
	}
?>